

/*
/ 全局静态变量定义
切勿随意修改数组次序，很多地方已下标方式使用
 */

export const page = {
  limit: [20, 40, 60, 80, 100],
  page: 1,
  layout: 'total, sizes, prev, pager, next, jumper'
}

/**
 * 无限极分类type
 * @type {{product: number, attachment: number, menu: number, article: number, operator: number}}
 */
export const categoryType = [ // 1 公用配置
  { name: '公用数据配置', value: 1, shortName: '公用' },
]
/*export const categoryType = [ // 1 产品分类，2 附件分类，3 文章分类， 4 设置分类， 5 菜单分类， 6 配置分类， 7 秒杀配置
  { name: '产品分类', value: 1, shortName: '产品' },
  { name: '附件分类', value: 2, shortName: '附件' },
  { name: '文章分类', value: 3, shortName: '文章' },
  { name: '设置分类', value: 4, shortName: '设置' },
  { name: '菜单分类', value: 5, shortName: '菜单' },
  { name: '配置分类', value: 6, shortName: '配置' },
  { name: '秒杀配置', value: 7, shortName: '秒杀' }
]*/

//公共返回数据

export const staticCategoryList = [
    {"id":1,"pid":0,"name":"重点投资项目建设类别","status":1,"sort":0,"child": [
      {"id":2,"pid":1,"name":"续建","status":1,"sort":0}, {"id":3,"pid":1,"name":"新建","status":1,"sort":0}
      ]},

  {"id":4,"pid":0,"name":"重点投资项目建设类型","status":1,"sort":0,"child": [
      {"id":5,"pid":1,"name":"交通","status":1,"sort":0}, {"id":6,"pid":1,"name":"能源","status":1,"sort":0}, {"id":7,"pid":1,"name":"社会民生","status":1,"sort":0}, {"id":8,"pid":1,"name":"园区基础设施","status":1,"sort":0}, {"id":9,"pid":1,"name":"工业制造业","status":1,"sort":0}
    ]},
]

export const staticProjectStatusList = [
    {"id":1,"name":"蓝灯项目","status":1,"sort":0}, {"id":2,"name":"黄灯项目","status":1,"sort":0}, {"id":3,"name":"红灯项目","status":1,"sort":0}
]

export const staticCategoryList1 = [
  // {"id":9,"pid":0,"name":"重点工作任务完成状态","status":1,"sort":0,"child": [
  //   {"id":10,"pid":9,"name":"未完成","status":1,"sort":0}, {"id":11,"pid":9,"name":"正在开展","status":1,"sort":0}, {"id":12,"pid":9,"name":"已完成","status":1,"sort":0}
  //   ]},
]

export const staticDepartmentTypeList = [
  {"id":1,"name":"党群综合部门","status":1,"sort":0}, {"id":2,"name":"县直部门","status":1,"sort":0}, {"id":3,"name":"乡镇","status":1,"sort":0}
]

export const staticDepartmentList = [


  // 16.县文旅局(电话：09375521120)
  //17.县气象局（电话：09375589612）
  // 18.工信局（电话：09375522709）
  {id:1,name:"县市场监督管理局",mobile:"09375510240",sort:0,type:1,typeText:'党群综合部门'},
  {id:2,name:"县公安局",mobile:"09375948516",sort:0,type:2,typeText:'县直部门'},
  {id:3,name:"县发改局",mobile:"09375521102",sort:0,type:3,typeText:'乡镇'},
  {id:4,name:"县税务局",mobile:"09375522264",sort:0,type:1,typeText:'党群综合部门'},
  {id:5,name:"县水务局",mobile:"09375521667",sort:0,type:1,typeText:'党群综合部门'},
  {id:6,name:"县应急管理局",mobile:"09375521800",sort:0,type:1,typeText:'党群综合部门'},
  {id:7,name:"县卫生健康局",mobile:"09375521457",sort:0,type:1,typeText:'党群综合部门'},
  {id:8,name:"县生态环境分局",mobile:"09375523834",sort:0,type:1,typeText:'党群综合部门'},
  {id:9,name:"县自然资源局",mobile:"09375521867",sort:0,type:1,typeText:'党群综合部门'},
  {id:10,name:"县住建局",mobile:"09375522725",sort:0,type:1,typeText:'党群综合部门'},
  {id:11,name:"县人社局",mobile:"09375521254",sort:0,type:1,typeText:'党群综合部门'},
  //{id:12,name:"县电力公司",mobile:"09375521515"},
  //{id:13,name:"县民宗局",mobile:"09375523034"},
  {id:14,name:"县交通运输局",mobile:"09375521901",sort:0,type:1,typeText:'党群综合部门'},
  //{id:15,name:"县委政法委",mobile:"09375521322"},
  {id:16,name:"县文旅局",mobile:"09375521120",sort:0,type:1,typeText:'党群综合部门'},
  {id:17,name:"县气象局",mobile:"09375589612",sort:0,type:1,typeText:'党群综合部门'},
  //{id:18,name:"工信局",mobile:"09375522709"},
]

export const roleListStatus = [
  { label: '全部', value: '' },
  { label: '显示', value: 1 },
  { label: '不显示', value: 0 }
]

export const showHiddenStatus = [
  { label: '显示', value: '‘1’' },
  { label: '不显示', value: '‘0’' }
]

export const switchStatus = [
  { label: '开启', value: 1 },
  { label: '关闭', value: 0 }
]

export const deletedOrNormal = [
  { label: '正常', value: 0 },
  { label: '已删除', value: 1 }
]

/**
 * 暂时弃用
 * @type {*[]}
 */
export const configCategory = [
  { label: '系统', value: '0' },
  { label: '应用', value: '1' },
  { label: '支付', value: '2' },
  { label: '其他', value: '3' }
]

/**
 * 表单配置集合集中配置
 * @type {{id: number, dis: string}[]}
 */
export const formConfigIds = [
  { id: 84, dis: '微信公众号表单配置' },
  { id: 86, dis: '秒杀配置' }
]

/**
 * 时间选择器
 */
export const fromList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '全部', val: '' },
    { text: '今天', val: 'today' },
    { text: '昨天', val: 'yesterday' },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
    { text: '本月', val: 'month' },
    { text: '本年', val: 'year' }
  ]
}

// 统计管理时间选择器
export const timeList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '昨天', val: `` },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
  ]
}
